package com.peace.hospital.mapper.publicn;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peace.hospital.entity.common.Price;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 价格表 Mapper 接口
 * </p>
 *
 * @author xie
 * @since 2019-11-13
 */
@Mapper
public interface PriceMapper extends BaseMapper<Price> {

//    查询库存单位
    @Select("select prid,pridunit,pristate\n" +
            "from hospital_public.price\n" +
            "where prid=#{prid}")
    public Price finPrice(int prid);
}
